package com.example.joe.joeapplication;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void changeName(View view) {

        TextView textFiled = findViewById(R.id.titleLabel);
        textFiled.setText(R.string.hello_change);
        textFiled.refreshDrawableState();
    }
}
